package com.ruoyi.project.bid.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 模板
 * 
 */
public class Template extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板ID */
    private Long templateId;

    /** 行业ID */
    private Long categoryId;

    /** 模板主题 */
    private String templateTheme;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 模板地址 */
    private String templatePath;

    @NotBlank(message = "模板主题不能为空")
    @Size(min = 0, max = 50, message = "模板主题长度不能超过50个字符")
    public String getTemplateTheme()
    {
        return templateTheme;
    }

    public void setTemplateTheme(String templateTheme)
    {
        this.templateTheme = templateTheme;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    @NotBlank(message = "行业类别不能为空")
    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    @NotBlank(message = "模板路径不能为空")
    @Size(min = 0, max = 200, message = "模板路径长度不能超过200个字符")
    public String getTemplatePath() {
        return templatePath;
    }

    public void setTemplatePath(String templatePath) {
        this.templatePath = templatePath;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "Template{" +
                "templateId=" + templateId +
                ", categoryId=" + categoryId +
                ", templateTheme='" + templateTheme + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", templatePath='" + templatePath + '\'' +
                '}';
    }
}
